package com.itheima.order.feign;

import com.itheima.order.feign.callback.OrderFeignCallBack;
import com.itheima.order.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value="order",fallback = OrderFeignCallBack.class)
public interface OrderFein {
    @GetMapping("/order/{userName}")
    public List<Order> queryOrderByUserName(@PathVariable("userName") String userName);
}
